<template>
  <div>
    <h3>购物车</h3>
    <ul>
      <li v-for="item in goods" :key="item.item_id">
        {{ item.sku_name }} {{ item.item_price / 100 }} {{ item.num }}
      </li>
    </ul>
  </div>
</template>
<script>
//辅助函数
import { mapState } from "vuex";
export default {
  name: "Cart",
  data() {
    return {};
  },
  computed: {
    ...mapState(["goods"]),
  },
  methods: {},
  components: {},
};
</script>
<style scoped>
</style>